package customer.zspt.cn.customer.utils;

import android.content.Context;

/**
 * 获取网络状态
 */

public class GetNetWorkUtil {

    //获得网络状态
    public static boolean getNetWorkState(Context context) {
        int netWorkState = NetUtils.getNetWorkState(context);
        if(netWorkState==NetUtils.MOBILE||netWorkState == NetUtils.WIFINET){
            return true;
        }
        return false;

    }
}
